package org.dromara.book.domain.bo;

import org.dromara.book.domain.SzlyBaseShelf;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 层架管理业务对象 szly_base_shelf
 *
 * @author LionLi
 * @date 2024-03-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SzlyBaseShelf.class, reverseConvertGenerate = false)
public class SzlyBaseShelfBo extends BaseEntity {

    /**
     * 参数主键
     */
    @NotNull(message = "参数主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 层架名称
     */
    @NotBlank(message = "层架名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 层架编号
     */
    @NotBlank(message = "层架编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 父级
     */
    @NotNull(message = "父级不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
